﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Solution.Business.Entities;
using Solution.Data;

namespace Solution.Business.Component
{
    public class FreeNewsComponent
    {
        private static FreeNewsDAC db = new FreeNewsDAC();

        public static List<FreeNew> FreeNews_GetByTop(string Top, string Where, string Ord)
        {
            return db.FreeNews_GetByTop(Top, Where, Ord);
        }

        public static void FreeNews_Insert(FreeNew freenews)
        {
            db.FreeNews_Insert(freenews);
        }

        public static void FreeNews_Update(FreeNew freenews)
        {
            db.FreeNews_Update(freenews);
        }
    }
}
